<div id="toppanel">
  <div id="panel">
    <div class="content clearfix">
      <div class="left">
        <h1>WNYHSports.com</h1>
        <p class="grey">Western New Yorks Oldest, longest running and most comprehensive High School sports information site has begun its 7th season reporting High School Sports news, scores, stats, rosters and much more for the ENTIRE Western New York area. We cover all 17 counties and bring the WNY sporting community together with the largest network of contributors. Members will see our latest upgrades and new features giving them access to the most information ever displayed in one site.</p>
      </div>
      <div class="left">
        <form class="clearfix" action="" method="post">
          <h1 class="padlock">Member Login</h1>
          <?php if(isset($LoginErr)){ ?>
          <div style="color:#F00; padding-top:3px; margin-bottom:-5px"><?php echo $LoginErr ?></div>
          <?php } ?>
          <label class="grey" for="log">Username:</label>
          <input class="field" type="text" name="username" id="log" value="" size="23" />
          <label class="grey" for="pwd">Password:</label>
          <input class="field" type="password" name="password" id="pwd" size="23" />
          <label>
            <input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" />
            &nbsp;Remember me</label>
          <div class="clear"></div>
          <input type="submit" name="submit" value="Login" class="bt_login" />
          <a class="lost-pwd" href="#">Lost your password?</a>
        </form>
      </div>
      <div class="left right">
        <form action="#" method="post">
          <h1>Not a member yet? Sign Up!</h1>
          <label class="grey" for="signup">Username:</label>
          <input class="field" type="text" name="signup" id="signup" value="" size="23" />
          <label class="grey" for="email">Email:</label>
          <input class="field" type="text" name="email" id="email" size="23" />
          <label>A password will be e-mailed to you.</label>
          <input type="submit" name="submit" value="Register" class="bt_register" />
        </form>
      </div>
    </div>
  </div>
  <!-- /login -->
  <!-- The tab on top -->
  <div class="tab">
    <ul class="login">
      <li class="left">&nbsp;</li>
      <?php if(!isset($_SESSION['username'])){ ?>
    	  <li>Hello, Guest!</li>
      <?php }else{ ?>
	      <li>Hello, <?php echo ucfirst($USER['name_f'])." ".ucfirst($USER['name_l']) ?></li>
    	  <?php if(isset($_SESSION['team'])){ ?>
      	   <li class="sep">|</li>
           <li><?php if($TEAMS[$_SESSION['team']]['gender'] == '0'){$gender = 'Male';};  if($TEAMS[$_SESSION['team']]['gender'] == '1'){$gender = 'Female';};  if($TEAMS[$_SESSION['team']]['gender'] == '3'){$gender = 'Co-Ed';} ?><?php echo $gender." ".$SPORT['sport_name'] ?> - <a href="index.php?cteam=true">change</a></li>
	      <?php } ?>
      <?php } ?>
      <?php if(isset($_SESSION['username'])){ ?>
      <li class="sep">|</li>
      <?php if($_SESSION['location'] == 'home'){ ?>
      <li><a href="http://teamcontrol.wnyhsports.com">Team Control Center</a></li>
      <?php }else{ ?>
      <li><a href="http://<?php echo $CONFIG['site'] ?>">WNYHSports Home</a></li>
      <?php } ?>
      <?php } ?>
      <li class="sep">|</li>
      <li id="toggle">
      	<?php if(!isset($_SESSION['username'])){ ?>
        	<a id="open" class="open" href="#" style="font-size:12px">Log In / Register</a> <a id="close" style="display: none;" class="close" href="#">Close Panel</a>
        <?php }else{ ?>
        	<a class="logout" href="logout.php" style="font-size:12px">Log Out</a> 
        	<a id="close" class="logout" href="logout.php" style="font-size:12px; display:none">Log Out</a>
        <?php } ?>
      </li>
      <li class="right">&nbsp;</li>
    </ul>
  </div>
  <!-- / top -->
</div>